package com.pet.entity;

import java.io.Serializable;

/**
 * 救助站信息
 * @TableName pet_station
 */
public class PetStation implements Serializable {
    /**
     * 救助站id
     */
    private Integer stationId;

    /**
     * 救助站名称
     */
    private String stationName;

    /**
     * 救助站地址
     */
    private String stationAddress;

    /**
     * 救助站负责人
     */
    private String stationUser;

    /**
     * 负责人电话
     */
    private String stationPhone;

    /**
     * 相关描述
     */
    private String stationDescription;

    /**
     * 删除：0未删除，1已删除
     */
    private Integer isDelete;

    private static final long serialVersionUID = 1L;

    /**
     * 救助站id
     */
    public Integer getStationId() {
        return stationId;
    }

    /**
     * 救助站id
     */
    public void setStationId(Integer stationId) {
        this.stationId = stationId;
    }

    /**
     * 救助站名称
     */
    public String getStationName() {
        return stationName;
    }

    /**
     * 救助站名称
     */
    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    /**
     * 救助站地址
     */
    public String getStationAddress() {
        return stationAddress;
    }

    /**
     * 救助站地址
     */
    public void setStationAddress(String stationAddress) {
        this.stationAddress = stationAddress;
    }

    /**
     * 救助站负责人
     */
    public String getStationUser() {
        return stationUser;
    }

    /**
     * 救助站负责人
     */
    public void setStationUser(String stationUser) {
        this.stationUser = stationUser;
    }

    /**
     * 负责人电话
     */
    public String getStationPhone() {
        return stationPhone;
    }

    /**
     * 负责人电话
     */
    public void setStationPhone(String stationPhone) {
        this.stationPhone = stationPhone;
    }

    /**
     * 相关描述
     */
    public String getStationDescription() {
        return stationDescription;
    }

    /**
     * 相关描述
     */
    public void setStationDescription(String stationDescription) {
        this.stationDescription = stationDescription;
    }

    /**
     * 删除：0未删除，1已删除
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 删除：0未删除，1已删除
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PetStation other = (PetStation) that;
        return (this.getStationId() == null ? other.getStationId() == null : this.getStationId().equals(other.getStationId()))
            && (this.getStationName() == null ? other.getStationName() == null : this.getStationName().equals(other.getStationName()))
            && (this.getStationAddress() == null ? other.getStationAddress() == null : this.getStationAddress().equals(other.getStationAddress()))
            && (this.getStationUser() == null ? other.getStationUser() == null : this.getStationUser().equals(other.getStationUser()))
            && (this.getStationPhone() == null ? other.getStationPhone() == null : this.getStationPhone().equals(other.getStationPhone()))
            && (this.getStationDescription() == null ? other.getStationDescription() == null : this.getStationDescription().equals(other.getStationDescription()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStationId() == null) ? 0 : getStationId().hashCode());
        result = prime * result + ((getStationName() == null) ? 0 : getStationName().hashCode());
        result = prime * result + ((getStationAddress() == null) ? 0 : getStationAddress().hashCode());
        result = prime * result + ((getStationUser() == null) ? 0 : getStationUser().hashCode());
        result = prime * result + ((getStationPhone() == null) ? 0 : getStationPhone().hashCode());
        result = prime * result + ((getStationDescription() == null) ? 0 : getStationDescription().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", stationId=").append(stationId);
        sb.append(", stationName=").append(stationName);
        sb.append(", stationAddress=").append(stationAddress);
        sb.append(", stationUser=").append(stationUser);
        sb.append(", stationPhone=").append(stationPhone);
        sb.append(", stationDescription=").append(stationDescription);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}